package com.deviche.library.utils;

import android.content.Context;
import android.widget.Toast;

public class ToastUtils {

    /*
    注意避免一直弹toast
     */

    public static Context mContext ;



    public static void  showToast(String message){
        Toast.makeText(mContext,message,Toast.LENGTH_SHORT).show();
    }

    public static void  showToast(Context context,String message){
        Toast.makeText(context,message,Toast.LENGTH_SHORT).show();
    }


    public static void  showLongToast(String message){
        Toast.makeText(mContext,message,Toast.LENGTH_LONG).show();
    }
}
